package remote;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class ConfigService {
    
    @Autowired
    RestTemplate restTemplate;

    public String getConfig(String sourceType) {
        return restTemplate.getForObject("http://CONFIG-CLIENT/getconfig?sourceType="+sourceType,String.class);
    }
}
